<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" th:href="@{/css/main.css}"/>
    <title>Spring MVC5 + Thymeleaf Spring表达式语言</title>
</head>
<body>
<h2>算术表达式1</h2>
<p class="label">Four multiplied by minus six multiplied by minus
    two module seven:</p>
<p class="answer" th:text="${4 * -6 * -2 % 7}">123</p>

<h2>对象导航2</h2>
<p class="label">Description field of the third element of productList bean:</p>
<p class="answer" th:text="${productList[1].description}">Product Description</p>

<h2>对象实例化3</h2>
<p class="label">Current time milliseconds:</p>
<p class="answer" th:text="${new java.util.Date().getTime()}">22-Jun-2018</p>

<h2>T操作符4</h2>
<p class="label">Random number:</p>
<p class="answer" th:text="${T(java.lang.Math).random()}">123456</p>
</body>
</html>